<!DOCTYPE html>
<html lang="zh-CN">

<head>
  <meta charset="UTF-8">
  <meta name="viewport" content="width=device-width, initial-scale=1.0">
  <title>Document</title>
</head>

<body>

</body>
<script>
  let json = {
    name: "陈观成",
    list: ["js", "java", "mongodb"],
    show() {
      const self = this; //定义一个常量接收this
      return this.list.map((value, index, array) => {
        return `${self.name}-${value}`;
      });
    }
  };

  console.table(json.show());
</script>

</html>